﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class pages_Demo_tree_treeMenu_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            TreeParams treeParams = new TreeParams();
            treeParams.SQLSelect = "select * from demo_tree_menu order by Node_ParentNodeId,Node_Order";
            treeParams.FieldParentID = "Node_ParentNodeId";
            treeParams.FieldCurrNodeID = "Node_ID";
            treeParams.FieldText = "Node_Text";
            treeParams.FieldUrl = "Node_Url";
            treeParams.HeadMark = "";
            treeParams.Target = "ifrmMain";
            TreeViewManager treeManager = new TreeViewManager();
            TreeView1 = treeManager.CreateMenuTree(TreeView1, treeParams);
        }
    }
}
